﻿<?php $this->load->view('layout/header'); ?>
    <div id="container">
        <!--查询表单开始-->
        <div id="DivQuery">
            <div id="floatBoxBg" style="filter: alpha(opacity=0); opacity: 0;">
            </div>
            <div id="floatBox" class="floatBox">
                <div id="drag" class="title" onmousedown="DragDialog()">
                    <h4>
                        查询</h4>
                    <span>关闭</span></div>
                <div class="content">
                    <form method='post' action="/admin.php/config/adminlog">
                    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table_query">
                        <tr class="table_query_row">
                            <td style="width: 15%" align="right">
                                日志内容：
                            </td>
                            <td>
                                <input name="logcontent" type="text" id="logcontent" />
                            </td>
                            <td style="width: 15%" align="right">
                                发生文件：
                            </td>
                            <td>
                                <input name="scriptfile" type="text" id="scriptfile" />
                            </td>
                        </tr>
                        <tr class="table_query_row">
                            <td style="width: 15%" align="right">
                                IP地址：
                            </td>
                            <td>
                                <input name="ipaddress" type="text" id="ipaddress" />
                            </td>
                            <td style="width: 15%" align="right">
                                管理员帐号/姓名：
                            </td>
                            <td>
                                <input name="txtAdmin" type="text" id="txtAdmin" />
                            </td>
                        </tr>
                        <tr class="table_query_row">
                            <td style="width: 15%" align="right">
                                发生时间：
                            </td>
                            <td colspan="3">
                                <input name="txtAddTime1" type="text" id="txtAddTime1" onfocus="WdatePicker({maxDate:&#39;#F{$dp.$D(\&#39;txtAddTime2\&#39;)}&#39;})" />
                                至
                                <input name="txtAddTime2" type="text" id="txtAddTime2" onfocus="WdatePicker({minDate:&#39;#F{$dp.$D(\&#39;txtAddTime1\&#39;)}&#39;})" />
                            </td>
                        </tr>
                        <tr class="table_query_btn">
                            <td align="right" style="width: 15%">
                            </td>
                            <td colspan="3">
                                <input type="submit" name="btnQuery" value="查询"  id="btnQuery" />
                                <input type="button" value="返回" onclick="javascript:HiddenSearchDialog();" />
                            </td>
                        </tr>
                    </table>
                    </form>
                </div>
            </div>
        </div>
        <!--查询表单结束-->
        <!--导航开始-->
        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table_nav">
            <tr>
                <td>
                    管理员日志管理&gt;管理列表
                </td>
            </tr>
        </table>
        <!--导航结束-->
        <!--操作选项开始-->
        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table_op">
            <tr>
                <td>
                    操作选项：
                    <a href="javascript:__doPostBack('lbtnDel','')" id="lbtnDel" name="AdminLogID" src="/admin.php/config/delete_info/adminlog/adminlogid/adminlog/" onclick="javascript:return checkDel(this);">删除管理员日志</a>
                    <a href="javascript:SearchDialog()">查询管理员日志</a>
                </td>
            </tr>
        </table>
        <!--操作选项结束-->
        <!--列表开始-->
        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table_list" id="TbList">
            <tr class="table_list_title">
                <td style="width: 2%">
                    <input type="checkbox" name="checkbox" value="checkbox" onclick="javascript:checkAll(this,'AdminLogID')" />
                </td>
                <td style="width: 10%" onclick="javascript:GoTo('?OrderKey=AdminLogID&AscDesc=asc&txtLogContent=&txtScriptFile=&txtIPAddress=&txtAdmin=&txtAddTime1=&txtAddTime2=&page=1')" title="点击排序">
                    编号<img src="../Themes/Images/down.gif"/>
                </td>
                <td style="width: 10%">
                    日志内容
                </td>
                <td style="width: 10%" onclick="javascript:GoTo('?OrderKey=ScriptFile&AscDesc=asc&txtLogContent=&txtScriptFile=&txtIPAddress=&txtAdmin=&txtAddTime1=&txtAddTime2=&page=1')" title="点击排序">
                    发生文件
                </td>
                <td style="width: 10%" onclick="javascript:GoTo('?OrderKey=IPAddress&AscDesc=asc&txtLogContent=&txtScriptFile=&txtIPAddress=&txtAdmin=&txtAddTime1=&txtAddTime2=&page=1')" title="点击排序">
                    IP地址
                </td>
                <td style="width: 10%" onclick="javascript:GoTo('?OrderKey=AdminID&AscDesc=asc&txtLogContent=&txtScriptFile=&txtIPAddress=&txtAdmin=&txtAddTime1=&txtAddTime2=&page=1')" title="点击排序">
                    操作人
                </td>
                <td style="width: 10%" onclick="javascript:GoTo('?OrderKey=AddTime&AscDesc=asc&txtLogContent=&txtScriptFile=&txtIPAddress=&txtAdmin=&txtAddTime1=&txtAddTime2=&page=1')" title="点击排序">
                    操作时间
                </td>
            </tr>
                <?php foreach ($list as $k=>$v) :?>
                    <tr class="table_list_row_normal">
                        <td style="width: 2%">
                            <input name="AdminLogID" type="checkbox" id="AdminLogID" src="/amdin.php/config/del_adminlog" value="<?php echo $v['adminlogid']?>" onclick="javascript:TrColor2('AdminLogID',1)" />
                        </td>
                        <td style="width: 10%" onclick="javascript:TrColor('AdminLogID',1)">
                            <?php echo $v['adminlogid']?>
                        </td>
                        <td style="width: 10%" onclick="javascript:TrColor('AdminLogID',1)">
                            <?php echo $v['logcontent']?>
                        </td>
                        <td style="width: 10%" onclick="javascript:TrColor('AdminLogID',1)">
                            <?php echo $v['scriptfile']?>
                        </td>
                        <td style="width: 10%" onclick="javascript:TrColor('AdminLogID',1)">
                            <?php echo $v['ipaddress']?>
                        </td>
                        <td style="width: 10%" onclick="javascript:TrColor('AdminLogID',1)">
                            <?php echo $v['adminname']?>
                        </td>
                        <td style="width: 10%" onclick="javascript:TrColor('AdminLogID',1)">
                            <?php echo $v['addtime']?>
                        </td>
                    </tr>
                <?php endforeach ;?>
                
        </table>
        <?php $pagination->show();?>
<script src="/static/bk/js/table.js" type="text/javascript"></script>
<?php $this->load->view('layout/footer'); ?>

